package gridmapper.server.planner;

import java.awt.Point;

//this is used for when two robots are moving at once (i.e. robot1 moves to [1,2] while robot2 moves to [3,5] at the same time)
public class CombinedMove {
	public Point Robot1Move;
	public Point Robot2Move;

	public CombinedMove(int x1, int y1, int x2, int y2) {
		Robot1Move = new Point(x1, y1);
		Robot2Move = new Point(x2, y2);
	}

	public CombinedMove(Point robot1, Point robot2) {
		Robot1Move = robot1;
		Robot2Move = robot2;
	}

	@Override
	public String toString() {
		return this.getClass().getSimpleName() + '['
				+ (Robot1Move != null ? Robot1Move.toString() : "") + ';'
				+ (Robot2Move != null ? Robot2Move.toString() : "") + ']';
	}
}
